#define _CRT_SECURE_NO_WARNINGS 1
#include"List.h"
void test1()
{
	LTnode* plist = LTInit();
	LTPushFront(plist, 1);
	LTPushFront(plist, 2);
	LTPushFront(plist, 3);
	LTPushFront(plist, 4);
	LTprint(plist);
}
test2()
{
	LTnode* plist = LTInit();
	LTPushFront(plist, 1);
	LTPushFront(plist, 2);
	LTPushFront(plist, 3);
	LTPushFront(plist, 4);
	LTprint(plist);
	LTPopFront(plist);
	LTPopFront(plist);
	LTPopFront(plist);
	LTPopFront(plist);
	LTprint(plist);

}

void test3()
{
	LTnode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	/*LTprint(plist);
	LTPopBack(plist);
	LTprint(plist);
	LTPopBack(plist);
	LTprint(plist);
	LTPopBack(plist);
	LTprint(plist);
	LTPopBack(plist);
	LTprint(plist);*/
	LTnode* pos=LTfind(plist, 3);
	if (plist)
	{
		/*LTInsert(pos, 30);
		LTprint(plist);*/
		LTErase(pos);
		LTprint(plist);
	  }
}
int main()
{
	//test1();
	//test2();
	test3();
	return 0;
}